package com.example.demo.config;

import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * @_PackageName:com.example.demo.config
 * @_ClassName:MyPasswordEncoder
 * @_Description:
 * @_Author：笑老二
 * @_data 2020/12/27 13:44
 */
public class MyPasswordEncoder implements PasswordEncoder {
    @Override
    public String encode(CharSequence charSequence) {
        return charSequence.toString();
    }

    @Override
    public boolean matches(CharSequence charSequence, String s) {
        return s.equals(charSequence.toString());
    }
}
